﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminChiTietThanhVien.aspx.cs" Inherits="LayoutTemplate.WebForm14" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
    .newStyle1 {
	width: 150px;
	height: 407px;
	float: left;
}
.newStyle2 {
	width: 300px;
	height: 70px;
	float: left;
}
.newStyle3 {
	width: 100px;
	height: 70px;
	float: left;
}
.newStyle4 {
	float: right;
	width: 400px;
	height: 409px;
}
</style>
	<div style="width: 750px; float: left;">
	<div style="float:left; width:200px"><asp:Menu ID="Menu1" runat="server">
            <Items>
                <asp:menuitem NavigateUrl="AdminDanhSach.aspx?id=1&amp;tt=0&amp;page=1" 
                    Text="Quản lí Thành viên" Value="Quản lí Thành viên">
                    <asp:MenuItem Text="Thành Viên Active" Value="Thành Viên Active" 
                        NavigateUrl="AdminDanhSach.aspx?id=1&amp;tt=2&amp;page=1"></asp:MenuItem>
                    <asp:MenuItem Text="Thành Viên bị Block" Value="Thành Viên bị Block" 
                        NavigateUrl="AdminDanhSach.aspx?id=1&amp;tt=1&amp;page=1">
                    </asp:MenuItem>
                </asp:menuitem>
                <asp:menuitem NavigateUrl="DoanhNghiep_DonHangDuocDat.aspx" 
                    Text="Quản lí Sản Phẩm" Value="Quản lí Sản Phẩm">
                    <asp:MenuItem Text="Sản phẩm đợi duyệt" Value="Sản phẩm đợi duyệt">
                    </asp:MenuItem>
                    <asp:MenuItem Text="Sản phẩm đang bán" Value="Sản phẩm đang bán"></asp:MenuItem>
                    <asp:MenuItem Text="Sản phẩm đã bán" Value="Sản phẩm đã bán"></asp:MenuItem>
                </asp:menuitem>
                <asp:menuitem NavigateUrl="AdminDanhSach.aspx?id=2&amp;tt=0&amp;page=1" 
                    Text="Quản lí Doanh Nghiệp" Value="Quản lí Doanh Nghiệp"></asp:menuitem>
            </Items>
        </asp:Menu></div>
<%  
    
    int id = int.Parse(Request.QueryString["id"]);
        
        DAO_DTO_WS.DTO.ThanhVienDTO thanhvien = new DAO_DTO_WS.DTO.ThanhVienDTO();
        thanhvien = DAO_DTO_WS.DAO.ThanhVienDAO.LayThanhVienTheoMa(id);
        LbTenDN.Text = thanhvien.TenThanhVien;
        lbHoTen.Text = thanhvien.HoTen;
        lbNgaySinh.Text = thanhvien.NgaySinh.ToShortDateString();
        lbDienThoai.Text = thanhvien.DienThoai;
        lbMatKhau.Text = thanhvien.MatKhau;       
        lbNoiO.Text = thanhvien.NoiO;
    
        tbDienThoai.Text = "";
        tbHoTen.Text = "";
        tbNgaySinh.Text = "";
        TbTenDN.Text = "";
        TbMatKhau.Text = "";
        tbNoiO.Text = "";
        int tinhtrang = thanhvien.TinhTrang;
    
 %>
		<div class="newStyle1">
		<div>
				<asp:Label runat="server" Text="Tên đăng nhập" id="Label2" CssClass="newStyle3"></asp:Label></div>
			<div>
				<asp:Label runat="server" Text="Họ tên" id="Label1" CssClass="newStyle3"></asp:Label></div>
			<div>
				<asp:Label runat="server" Text="Ngày sinh" id="Label3" CssClass="newStyle3"></asp:Label></div>
			<div>
				<asp:Label runat="server" Text="Điện thoại" id="Label4" CssClass="newStyle3"></asp:Label></div>
			<div>
				<asp:Label runat="server" Text="Nơi ở" id="Label5" CssClass="newStyle3"></asp:Label></div>
			<div>
				<asp:Label runat="server" Text="Mật khẩu " id="Label6" CssClass="newStyle3"></asp:Label></div>
			<div>
				</div>
		</div>
		<div class="newStyle4">
		    <div class="newStyle2">
			<asp:TextBox runat="server" id="TbTenDN" Enabled="false"></asp:TextBox>
				<div><asp:Label id="LbTenDN" runat="server" ></asp:Label></div>
			</div>
			<div class="newStyle2">
			<asp:TextBox runat="server" id="tbHoTen"></asp:TextBox>
				<div><asp:Label id="lbHoTen" runat="server" ></asp:Label></div>
			</div>
			
			<div class="newStyle2">
				<asp:TextBox runat="server" id="tbNgaySinh"></asp:TextBox>
				<div><asp:Label id="lbNgaySinh" runat="server" ></asp:Label></div>
			</div>
			
			<div class="newStyle2">
			    <asp:TextBox runat="server" id="tbDienThoai"></asp:TextBox>
				<div><asp:Label id="lbDienThoai" runat="server" ></asp:Label></div>
			</div>
			
			<div class="newStyle2">
				<asp:TextBox runat="server" id="tbNoiO"></asp:TextBox>
				<div><asp:Label id="lbNoiO" runat="server" ></asp:Label></div>
			</div>
			<div class="newStyle2">
				<asp:TextBox runat="server" id="TbMatKhau"></asp:TextBox>
				<div><asp:Label id="lbMatKhau" runat="server" ></asp:Label></div>
			</div>
			</div>
		</div>
			<div style="float:Left;width:25%"><asp:Button id="btnCapNhat" runat="server" 
                    Text="Cap nhat" onclick="btnCapNhat_Click" /></div>
                    <%if (tinhtrang == 1)
                      { %>
            <div style="float:right;width:25%">
                <asp:Button id="Button1" runat="server" 
                    Text="Block" onclick="Button1_Click"  /></div>
                    <%}
                      else 
                      {%>
                         <div style="float:right;width:25%">
                             <asp:Button id="Button2" runat="server" 
                    Text="UnBlock" onclick="Button2_Click"  /></div><%}  %>
	
</asp:Content>
